package messaage;

public class RegisterMsg extends Message {

	protected String firstName;
	protected String lastName;
	protected String email;
	protected char gender;
	protected String password;

	public RegisterMsg(String _firstName, String _lastName, String _email,
			char _gender, String _username, String _password)
	{
		this.username = _username;
		this.firstName = _firstName;
		this.lastName = _lastName;
		this.email = _email;
		this.gender = _gender;
		this.password = _password;
	}

	@Override
	public String toString() {
		String msg = "Register\n" + "FirstName:" + this.firstName + "\n" +
			"LastName:" + this.lastName + "\n" + "E-mail:" + this.email + "\n" +
			"Gender:" + this.gender + "\n" + "UserName:" + this.username + "\n" + 
			"Password:" + this.password + '\0';
		return msg;
	}

	public String getFirstName() {
		return firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public String getEmail() {
		return email;
	}

	public char getGender() {
		return gender;
	}

	public String getPassword() {
		return password;
	}

}
